import { createAPI } from '@/utils/request'

// 获取列表
export const getOrderList = (data) => createAPI(`/order-manager/order/page`, 'post', data)

// 获取详情
export const getOrderEdit = (id) => createAPI(`/order-manager/order/${id}`, 'get')
// 获取详情
export const getOrdercargo = (id) => createAPI(`/order-manager/cargo?orderId=${id}`, 'get')

// 编辑
export const getGoodsType = () => createAPI(`/goodsType/simple`, 'get')

// 保存
export const postGoodsType = (id, data) => createAPI(`/order-manager/order/${id}`, 'put', data)
// 删除
export const delGoodsType = (id) => createAPI(`/order-manager/cargo/${id}`, 'delete')

